﻿using System;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;

namespace Search
{

    internal class Feed
    {

        private JObject __jobject;
        public Feed(JObject obj)
        {
            this.__jobject = obj;
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private Movie[] _movie;
        public Movie[] Movie
        {
            get
            {
                if(_movie == null)
                    _movie = (Movie[])JsonClassHelperSearch.ReadArray<Movie>(JsonClassHelperSearch.GetJToken<JArray>(__jobject, "movie"), JsonClassHelperSearch.ReadStronglyTypedObject<Movie>, typeof(Movie[]));
                return _movie;
            }
        }

    }
}
